﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Winowajca
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


            using (DatabaseContext ctx = new DatabaseContext())
            {
                var list = ctx.Wine.Include("WineSugar").Include("WineColor").ToList();                
                rptWineList.DataSource = list;
                rptWineList.DataBind();
            }
        }
    }
}